package com.nengchuan.eic.nceconomy.entity.dto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 三维算量保存DTO
 * @author: panwen
 * @create: 2020/05/25 14:01
 * @version：1.0.0
 */
@ApiModel
@Data
public class SwDirectorySaveDTO {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "目录名称")
    @Length(min = 1,max = 32,message = "dirName长度范围1~32")
    @NotNull(message = "dirName不能为null")
    private String dirName;

    @ApiModelProperty(value = "父ID")
    @Min(value = 1,message = "parentId不符合格式")
    private Long parentId;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;
}
